﻿
namespace n_VersionForm
{
using System;
using System.Windows.Forms;

using n_OS;

/// <summary>
/// Description of WorkForm.
/// </summary>
public partial class VersionForm : Form
{
	//主窗口
	public VersionForm()
	{
		//
		// The InitializeComponent() call is required for Windows Forms designer support.
		//
		InitializeComponent();
		this.MinimumSize = this.Size;
		this.MaximumSize = this.Size;
		
		//初始化
		this.richTextBox1.Text = VIO.OpenTextFile( OS.SystemRoot + "Resource" + OS.PATH_S + "newversion.txt" );
	}
	
	//窗体运行
	public void Run()
	{
		this.Visible = true;
	}
	
	//窗体关闭事件
	void FindFormFormClosing(object sender, FormClosingEventArgs e)
	{
		this.Visible = false;
		e.Cancel = true;
	}
	
	void CheckBox1CheckedChanged(object sender, EventArgs e)
	{
		n_MainSystemData.SystemData.ShowNewVersion = !this.checkBox1.Checked;
		n_MainSystemData.SystemData.isChanged = true;
	}
	
	void Button1Click(object sender, EventArgs e)
	{
		if( U.U.CopyRightBox == null ) {
			U.U.CopyRightBox = new n_CopyRightForm.CopyRightForm();
		}
		U.U.CopyRightBox.Run();
	}
}
}




